﻿using ShanNiang.Hosting.Common;
using ShanNiang.Hosting.Enumerate;
using ShanNiang.Service.Enumerate;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Emit;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Service.PackingModels.Requests
{
    /// <summary>
    /// 查询组合码请求
    /// </summary>
    public class GetItemRequest : RequestBase
    {
        public GetItemRequest(string code,Guid? enterpriseId)
        {
            Code = code;
            CodeType = CodeType.Barcode;
            EnterpriseId = enterpriseId;
        }
        /// <summary>
        /// 箱码
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 码类型 0:瓶码, 1:箱码, 2:托码, 3:条码,
        /// </summary>
        public CodeType CodeType { get; set; }
        /// <summary>
        /// 企业id
        /// </summary>
        public Guid? EnterpriseId { get; set; }

        public override ApiServer ApiServer => ApiServer.XkmServer;

        public override HttpMethod Method => HttpMethod.Get;

        public override bool NeedToken => true;

        protected override string RequestPath => "/api/Packing/GetItem";
    }
}
